package com.starlight.flower_server.domain.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.starlight.flower_server.domain.TotalData;
import com.starlight.flower_server.domain.order.cqrs.OrderPageQuery;
import com.starlight.flower_server.domain.order.data.OrderData;
import com.starlight.flower_server.infrastructure.entity.Order;

import java.util.List;

/**
 * @Author yfy2001
 * @date 2023/4/5 15:07
 */
public interface OrderService {
    Order queryOrderDetailById(Long id);

    Integer logicDeleteOrderById(Long id);

    Integer insertOrder(Order order);

    Integer modifyOrder(Order order);

    IPage<OrderData> queryOrderList(OrderPageQuery query);

    List<OrderData> queryFlowerUserOrderByFlowerUserId(Long id);

    List<OrderData> queryOrderListByIdList(List<Long> orderIdList);

    TotalData<OrderData> queryAllOrderData();

    TotalData<OrderData> queryOrderTotalCount();

    Integer paySelectedOrder(Long orderId);

    Integer completeSelectedOrder(Long orderId);
}
